package com.liuyucheng.designpattern.建造者模式;

/**
 * 指挥
 * 负责工程如何去构建
 *
 * 这里是服务员
 */
public class Director {

    public Product build(Builder builder){
        builder.build1();
        builder.build2();
        builder.build3();
        builder.build4();

        return builder.getProduct();
    }

    public Product build2(Builder builder){
        builder.build2();
        builder.build1();
        builder.build4();
        builder.build3();

        return builder.getProduct();
    }
}
